/**
 * 信息推送-资产处置-获取信息列表
 * @param {string} data.start_time - 开始时间
 * @param {string} data.end_time - 结束时间
 * @param {number} data.push_channel - 推送方式 1APP 2服务号
 * @param {number} data.msg_type - 信息类型 1资产 2招标拍卖
 * @param {string} data.time_type - 时间类型 1日 2周 3月
 * @param {string} data.crm_push_mans - 推送人
 
 */
function apiGetInfoList(data) {
  console.log("apiGetInfoList", data);
  return new Promise((resolve, reject) => {
    const res = {
      code: 200,
      data: [
        {
          date: "2020-01-01",
          push_num: 168,
          push_people: 167,
          push_success: 73,
          user_num: 102,
          deduplication_push_people: 167,
          read_num: 95,
          view_num: 100,
          success_rate: 73,
          read_rate: 100,
          accept_rate: 65,
          coverage_rate: 25,
        },
        {
          date: "2020-01-02",
          push_num: 198,
          push_people: 167,
          push_success: 73,
          user_num: 102,
          deduplication_push_people: 167,
          read_num: 95,
          view_num: 100,
          success_rate: 73,
          read_rate: 100,
          accept_rate: 65,
          coverage_rate: 25,
        },
        {
          date: "2020-01-03",
          push_num: 116,
          push_people: 167,
          push_success: 73,
          user_num: 102,
          deduplication_push_people: 167,
          read_num: 95,
          view_num: 100,
          success_rate: 63,
          read_rate: 100,
          accept_rate: 65,
          coverage_rate: 25,
        },
        {
          date: "2020-01-04",
          push_num: 159,
          push_people: 167,
          push_success: 73,
          user_num: 102,
          deduplication_push_people: 167,
          read_num: 95,
          view_num: 100,
          success_rate: 96,
          read_rate: 100,
          accept_rate: 65,
          coverage_rate: 25,
        },
        {
          date: "2020-01-05",
          push_num: 189,
          push_people: 167,
          push_success: 73,
          user_num: 102,
          deduplication_push_people: 167,
          read_num: 95,
          view_num: 100,
          success_rate: 73,
          read_rate: 100,
          accept_rate: 65,
          coverage_rate: 25,
        },
        {
          date: "2020-01-06",
          push_num: 256,
          push_people: 167,
          push_success: 73,
          user_num: 102,
          deduplication_push_people: 167,
          read_num: 95,
          view_num: 100,
          success_rate: 96,
          read_rate: 100,
          accept_rate: 65,
          coverage_rate: 25,
        },
        {
          date: "2020-01-07",
          push_num: 195,
          push_people: 167,
          push_success: 73,
          user_num: 102,
          deduplication_push_people: 167,
          read_num: 95,
          view_num: 100,
          success_rate: 84,
          read_rate: 100,
          accept_rate: 65,
          coverage_rate: 25,
        },
        {
          date: "2020-01-05",
          push_num: 289,
          push_people: 167,
          push_success: 73,
          user_num: 102,
          deduplication_push_people: 167,
          read_num: 95,
          view_num: 100,
          success_rate: 95,
          read_rate: 100,
          accept_rate: 65,
          coverage_rate: 25,
        },
        {
          date: "2020-01-09",
          push_num: 365,
          push_people: 167,
          push_success: 73,
          user_num: 102,
          deduplication_push_people: 167,
          read_num: 95,
          view_num: 100,
          success_rate: 84,
          read_rate: 100,
          accept_rate: 65,
          coverage_rate: 25,
        },
        {
          date: "2020-01-10",
          push_num: 398,
          push_people: 167,
          push_success: 73,
          user_num: 102,
          deduplication_push_people: 167,
          read_num: 95,
          view_num: 100,
          success_rate: 89,
          read_rate: 100,
          accept_rate: 65,
          coverage_rate: 25,
        },
      ],
    };
    const err = {
      code: 500,
      msg: "获取列表失败",
    };
    setTimeout(() => {
      resolve(res);
      // reject(err);
    }, 500);
  });
}
/**
 * 信息推送-资产处置-获取信息列表
 * @param {string} data.start_time - 开始时间
 * @param {string} data.end_time - 结束时间
 * @param {number} data.push_channel - 推送方式 1APP 2服务号
 * @param {number} data.msg_type - 信息类型 1资产 2招标拍卖
 * @param {string} data.time_type - 时间类型 1日 2周 3月
 
 */
function apiGetDetailList(data) {
  console.log("apiGetDetailList", data);
  return new Promise((resolve, reject) => {
    const res = {
      code: 200,
      data: [
        {
          id: "9964-33864",
          push_num: 156,
          success_num: 156,
          read_num: 73,
          view_num: 100,
        },
        {
          id: "9964-33864",
          push_num: 156,
          success_num: 156,
          read_num: 73,
          view_num: 100,
        },
        {
          id: "9964-33864",
          push_num: 156,
          success_num: 156,
          read_num: 73,
          view_num: 100,
        },
        {
          id: "9964-33864",
          push_num: 156,
          success_num: 156,
          read_num: 73,
          view_num: 100,
        },
        {
          id: "9964-33864",
          push_num: 156,
          success_num: 156,
          read_num: 73,
          view_num: 100,
        },
        {
          id: "9964-33864",
          push_num: 156,
          success_num: 156,
          read_num: 73,
          view_num: 100,
        },
        {
          id: "9964-33864",
          push_num: 156,
          success_num: 156,
          read_num: 73,
          view_num: 100,
        },
        {
          id: "9964-33864",
          push_num: 156,
          success_num: 156,
          read_num: 73,
          view_num: 100,
        },
        {
          id: "9964-33864",
          push_num: 156,
          success_num: 156,
          read_num: 73,
          view_num: 100,
        },
        {
          id: "9964-33864",
          push_num: 156,
          success_num: 156,
          read_num: 73,
          view_num: 100,
        },
      ],
      total: 156,
    };
    const err = {
      code: 500,
      msg: "获取列表失败",
    };
    setTimeout(() => {
      resolve(res);
      // reject(err);
    }, 500);
  });
}
/**
 * 信息推送-获取用户列表
 */
function apiGetManList(data) {
  console.log("apiGetManList", data);
  return new Promise((resolve, reject) => {
    const res = {
      code: 200,
      data: [
        {
          id: 1,
          name: "张三",
        },
        {
          id: 2,
          name: "李四",
        },
        {
          id: 3,
          name: "王五",
        },
        {
          id: 4,
          name: "赵六",
        },
        {
          id: 5,
          name: "田七",
        },
        {
          id: 6,
          name: "王八",
        },
        {
          id: 7,
          name: "王九",
        },
        {
          id: 8,
          name: "王十",
        },
        {
          id: 9,
          name: "王十一",
        },
        {
          id: 10,
          name: "王十二",
        },
      ],
    };
    setTimeout(() => {
      resolve(res);
    }, 500);
  });
}
